package cn.xiangxiang.controller;

import cn.xiangxiang.service.goods.SkuService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sku")
@CrossOrigin
public class SkuController {

    @Reference
    private SkuService skuService;

    @RequestMapping("/getPrice")
    public Integer getPrice(String skuId){
        return skuService.getPrice(skuId);
    }
}
